package com.match.competition_sub.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AdiosF
 * @since 2021-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Teacher对象", description="")
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教师id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "职工号")
    private String number;

    @ApiModelProperty(value = "教师名称")
    private String name;

    @ApiModelProperty(value = "教师密码")
    private String password;

    @ApiModelProperty(value = "教师性别")
    private String sex;

    @ApiModelProperty(value = "教师部门")
    private String department;

    @ApiModelProperty(value = "教师角色")
    private String role;

    @ApiModelProperty(value = "教师职称")
    private String jobTitle;

    @ApiModelProperty(value = "教师号码")
    private String phone;

    @ApiModelProperty(value = "教师状态")
    private Integer state;

    @ApiModelProperty(value = "教师组别")
    private String grout;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "讲师头像")
    private String avatar;
}
